A formal operational semantics for C++ object construction and destruction

نویسنده

  • Tahina Ramananandro
چکیده

• list(A) is the set of all lists having their elements in A • nil is the empty list • a :: q is the list starting with an element a and continuing with the tail list q • q − is the append (list concatenation) operator: for any list l, we have nil q −l def. l and (a :: q) q −l def. a :: (q q −l). • lterf (l) is the lter operator, recursively de ned as follows: lterf ( ) = and lterf (a :: q) = { a :: lterf (q) if f(a) = true lterf (q) otherwise • rev(l) is the reverse of the list l, i.e. the list of elements of l given in the reverse order of l. That is, rev( ) = and rev(a :: q) = rev(q) q −a :: . • length(l) is the length of a list l: length(nil) def. 0 and length(a :: l′) def. 1 + length(l′)

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Mechanized Formal Semantics and Veri ed Compilation for C++ Objects

C++ is one of the most widely used programming languages in practice, including for embedded critical software. Thus, it becomes interesting to apply formal methods to programs written in C++. To this end, it is necessary to rely on a formal semantics of C++. Moreover, such a formal semantics can be validated as a basis to the speci cation and proof of a veri ed realistic compiler for C++ to ga...

متن کامل

Modeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism

In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...

متن کامل

Modeling and Evaluation of Stochastic Discrete-Event Systems with RayLang Formalism

In recent years, formal methods have been used as an important tool for performance evaluation and verification of a wide range of systems. In the view points of engineers and practitioners, however, there are still some major difficulties in using formal methods. In this paper, we introduce a new formal modeling language to fill the gaps between object-oriented programming languages (OOPLs) us...

متن کامل

Declarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey

One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...

متن کامل

A Dual Framework for High Assurance Distributed Object Security

High assurance security is extremely di cult to acheive in distributed computer systems due to their inherent non-determinism and heterogeneity. The practical application of formal methods is the key to high assurance security in open, distributed environments. This paper presents a methodology that applies formal methods within a dual framework to achieve secure interoperation of heterogeneous...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011